Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
'Console is not defined' troubles
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave  
View profile  
 More options Nov 14 2009, 6:37 am
From: Dave <buttonst...@gmail.com>
Date: Sat, 14 Nov 2009 03:37:53 -0800 (PST)
Local: Sat, Nov 14 2009 6:37 am
Subject: 'Console is not defined' troubles
I've recently noticed the console not working. I really don't know why
it's not, I haven't mess with any of the settings. I haven't used
Firebug in awhile, but it has happened ever since I've updated. Any
idea if I'm doing something wrong or if it's wrong?

It always says 'console is not defined' when I use console.log()

Please help.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John J Barton  
View profile  
 More options Nov 14 2009, 1:21 pm
From: John J Barton <johnjbar...@johnjbarton.com>
Date: Sat, 14 Nov 2009 10:21:52 -0800 (PST)
Local: Sat, Nov 14 2009 1:21 pm
Subject: Re: 'Console is not defined' troubles

On Nov 14, 3:37 am, Dave <buttonst...@gmail.com> wrote:

> I've recently noticed the console not working. I really don't know why
> it's not, I haven't mess with any of the settings. I haven't used
> Firebug in awhile, but it has happened ever since I've updated. Any
> idea if I'm doing something wrong or if it's wrong?

> It always says 'console is not defined' when I use console.log()

> Please help.

Well you didn't give enough information for us to help you. Perhaps
you installed a Firefox extension or changed an option since it
worked?

You can try two things:
  1) Reset all Firebug options. http://getfirebug.com/wiki/index.php/FAQ#Resetting_All_Options
  2) Install Firebug 1.5b3 in a new Firefox profile.
http://getfirebug.com/wiki/index.php/FAQ#Installing_in_a_clean_Profile

jjb


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
stuartski  
View profile  
 More options Nov 19 2009, 8:58 am
From: stuartski <stuartsadam...@gmail.com>
Date: Thu, 19 Nov 2009 05:58:10 -0800 (PST)
Local: Thurs, Nov 19 2009 8:58 am
Subject: Re: 'Console is not defined' troubles
I often get this message when i try to use firebug.  The way i often
get round it is to type in "console.debug(' ')" into the script
section and run it.  I do this before the console.log or console.debug
gets called.  if i then get a message saying its doesn't work i
refresh the browser

On Nov 14, 6:21 pm, John J Barton <johnjbar...@johnjbarton.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kamenjar  
View profile  
 More options Nov 24 2009, 3:32 pm
From: kamenjar <nikol...@gmail.com>
Date: Tue, 24 Nov 2009 12:32:58 -0800 (PST)
Local: Tues, Nov 24 2009 3:32 pm
Subject: Re: 'Console is not defined' troubles
<html>
<body onload="javascript:onLoad();">
<script>
function onTimeout() {
        location.reload(true);
}

function onLoad() {
        if (console && typeof console.log == "function") console.log("Hello
world");
        // switch to a different tab then allow the timer to expire.
        // it will die with javascript error here.
        // Next statement will never execute and the page will stop
reloading! -- BUG

        setTimeout(onTimeout, 3000);

}

</script>
</html>

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John J Barton  
View profile  
 More options Nov 25 2009, 11:01 am
From: John J Barton <johnjbar...@johnjbarton.com>
Date: Wed, 25 Nov 2009 08:01:04 -0800 (PST)
Local: Wed, Nov 25 2009 11:01 am
Subject: Re: 'Console is not defined' troubles
https://fbug.googlecode.com/svn/tests/issues/ConsoleNotDefined.html

Firefox does not fire 'onLocationChange' for the hidden tab, so
Firebug does not know that the page changed and thus does not include
the console for it.

I'm checking with Firefox team, but my guess is that we can't fix this
for Firebug 1.5. We need either to reimplement the console (schedule
for Firebug 1.7) or get a different way to know about the page change
(Firefox 3.7?).

jjb

On Nov 24, 12:32 pm, kamenjar <nikol...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kamenjar  
View profile  
 More options Nov 25 2009, 12:13 pm
From: kamenjar <nikol...@gmail.com>
Date: Wed, 25 Nov 2009 09:13:16 -0800 (PST)
Local: Wed, Nov 25 2009 12:13 pm
Subject: Re: 'Console is not defined' troubles
I understand that there may be technical issues that revolve around
the browser, but the fact that this breaks all my code that uses
console and no way for me to protect against it is a problem. I mean,
console is not defined -- fine, but how should I write my code so it
doesn't error out? I thought that if(console) was safe enough check.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John J Barton  
View profile  
 More options Nov 25 2009, 12:36 pm
From: John J Barton <johnjbar...@johnjbarton.com>
Date: Wed, 25 Nov 2009 09:36:12 -0800 (PST)
Local: Wed, Nov 25 2009 12:36 pm
Subject: Re: 'Console is not defined' troubles

On Nov 25, 9:13 am, kamenjar <nikol...@gmail.com> wrote:

> I understand that there may be technical issues that revolve around
> the browser, but the fact that this breaks all my code that uses
> console and no way for me to protect against it is a problem. I mean,
> console is not defined -- fine, but how should I write my code so it
> doesn't error out? I thought that if(console) was safe enough check.

Oh, then check for 'window.console':
        if (window.console && typeof console.log == "function")
            console.log("Hello world");
Sadly the expression
        if (console)
fails at compile time.

jjb


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John J Barton  
View profile  
 More options Nov 25 2009, 7:55 pm
From: John J Barton <johnjbar...@johnjbarton.com>
Date: Wed, 25 Nov 2009 16:55:56 -0800 (PST)
Local: Wed, Nov 25 2009 7:55 pm
Subject: Re: 'Console is not defined' troubles
Ok I learned from the Firefox team that we can probably solve the
problem of the console not being injected by replacing our
addProgressListener with a addTabsProgressListener. Maybe I'll
remember this...

jjb

On Nov 25, 9:13 am, kamenjar <nikol...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google